package com.xcity.pomelo.response;

import com.xcity.db.entity.Player;
import com.xcity.game.worldboss.WorldBossUtils;
import com.xcity.game.worldboss.template.WorldBossConfig;

import naga.x.net.impl.pomelo.PomeloMessage;
import naga.x.net.impl.pomelo.protocol.Message;

@PomeloMessage(type = Message.Type.RESPONSE)
public class WorldBossJoinTimesCooldownTimeResponse extends Response {
	
	/** 剩余挑战次数 */
	public int num;
	/** 最大挑战次数 */
	public int maxNum;
	/** 挑战次数恢复cd（秒） */
	public int cd;
	
	public WorldBossJoinTimesCooldownTimeResponse(int serial, Player player) {
		super(serial);
		this.num = WorldBossUtils.getLeftTimes(player);
		this.maxNum = WorldBossConfig.joinTimesLimit;
		this.cd = WorldBossUtils.getJoinTimesCooldownTime(player);
	}

}
